import { StyleSheet } from '@react-pdf/renderer';

export const pdfStyle = StyleSheet.create({
  page: {
    padding: 40,
    backgroundColor: '#fff',
    width: '100%',
    fontFamily: 'SourceHan',
  },
  container: {
    maxWidth: 794, // A4宽度
    color: '#000',
  },
  title: {
    fontSize: 24,
    marginBottom: 10,
    fontFamily: 'SourceHan', // 指定已注册的字体族
    fontWeight: 'bold',
    textAlign: 'center',
  },
  date: {
    fontSize: 12,
    marginBottom: 20,
    color: '#666',
    textAlign: 'center',
  },
  sectionTitle: {
    fontSize: 18,
    marginBottom: 10,
    fontWeight: '600',
  },
  listItem: {
    fontSize: 14,
    marginBottom: 8,
  },
  aiContainer: {
    marginTop: 40,
    paddingHorizontal: 10,
    width: '100%'
  },
  aiText: {
    fontSize: 12,
    lineHeight: 1.6,
    textAlign: 'justify',
    whiteSpace: 'pre-wrap',
    width: '100%'
  },
});